const re1 = /abc/ig;
const message = "fdabc21 faBc323 dfABC12 AaaBc32";
const result=message.search(re1)
console.log(result)  //2    
//没有则返回-1